$(function() {
    console.log( localStorage.getItem('savalogintooken'));

    //判断清楚运行监听事件
    if(localStorage.getItem('savalogintooken')&&localStorage.getItem('savestudentstatus')){
        if(localStorage.getItem('savestudentstatus')==1){
           location.href = "../index/index.html";
           }else{
               location.href = "../order/oder.html";
           }


    }



    $.ajax({
        url:"https://newapp.icandrive.cn/api/edition.php",
        type:"post",
        dataType:"json",
        data:{

    },  success:function (data) {
        if(data == true){
            //不需要更新
        }else {
            //需要更新
        }
    },
        error:function () {

        }

})
})
